package com.shizhanzhe.gxb;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 *
 * @author YJ
 * @date 2019/1/25
 */
public class MyDB extends SQLiteOpenHelper {
    private Context mContext;
    public MyDB(Context context, String name, SQLiteDatabase.CursorFactory factory, int version) {
        super(context, name, factory, version);
        mContext = context;
    }
    public static final String CREATE_USER="create table history(" +
            "id integer primary key autoincrement," +
            "name text)";

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL(CREATE_USER);
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
